<?php

namespace app\admin\validate;

use think\Validate;

class CateValidate extends Validate
{

	protected $rule = [
	    'title'=>'require|min:2|max:16',
        'content'=>'require|min:6'
    ];

    protected $message = [
        'title.require'=>'标题不能为空',
        'title.min'=>'您这也太短了些',
        'title.max'=>'太长了....',
        'content.require'=>'行行好写点吧',
        'content.min'=>'字数太少'
    ];
}
